#! /bin/bash

g++ export2.cpp -lpqxx -lpq
./a.out > process_log.txt
mkdir processed
mv ndvi.txt ndvi_interpolated.txt lswi.txt lswi_interpolated.txt evi.txt evi_interpolated.txt ndvi_smoothed.txt lswi_smoothed.txt evi_smoothed.txt process_log.txt -t processed/
rm a.out
sublime-text processed/process_log.txt